//Copyright 2010 Balazs Keri, Imre Keri
//
//This file is part of FireworksCreator.
//
//FireworksCreator is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//FireworksCreator is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with FireworksCreator.  If not, see <http://www.gnu.org/licenses/>.
//
#ifndef _PLAYER_SHOOTER_H
#define _PLAYER_SHOOTER_H
//
#include <global.h>
#include <osg/Referenced>
#include <model/shooter_fwd.h>
#include "controller_fwd.h"
//
namespace player
{
class Shooter:public osg::Referenced
{
//disabled
public:
   Shooter(const Shooter&);
   Shooter &operator=(const Shooter&);
//construction
public:
   static Shooter *create(model::Shooter *p_shooter);
   virtual ~Shooter();
   virtual void init_setup(Controller *p_controller,const model::Shooter *p_shooter);
protected:
   Shooter();
//operations
public:
   virtual bool update(double dt)=0;
//data
public:
   virtual const model::Shooter *get_shooter()const=0;
   double get_start_time()const;
protected:
   Controller *controller;
};
}
//
/*inline bool operator<(const player::Shooter* left,const player::Shooter* right) {
  return left->get_start_time()<right->get_start_time();
}*/
//
#endif
